package com.example.anliku.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;

@ApiModel(value = "com-example-anliku-entity-Download")
@Data
public class Download {
    /**
     * 下载id
     */
    @ApiModelProperty(value = "下载id")
    private Integer downloadId;

    /**
     * 下载人id
     */
    @ApiModelProperty(value = "下载人id")
    private String downloadUserId;

    /**
     * 下载案例id
     */
    @ApiModelProperty(value = "下载案例id")
    private String downloadCaseId;

    /**
     * 下载时间
     */
    @ApiModelProperty(value = "下载时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date downloadTime;

    @Transient
    private User user;

    @Transient
    private Example example;
}